/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.entity;

import com.thinkgem.jeesite.modules.sys.entity.Area;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 经济林面积Entity
 * @author zad
 * @version 2018-03-26
 */
public class GtForest extends DataEntity<GtForest> {
	
	private static final long serialVersionUID = 1L;
	private Area area;		// 地区
	private Double forestArea;		// 面积
	private String address;		// 地点
	private String treeType;		// 主要树种
	private String mobile;		// 联系电话
	
	public GtForest() {
		super();
	}

	public GtForest(String id){
		super(id);
	}

	@NotNull(message="地区不能为空")
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	public Double getForestArea() {
		return forestArea;
	}

	public void setForestArea(Double forestArea) {
		this.forestArea = forestArea;
	}
	
	@Length(min=0, max=256, message="地点长度必须介于 0 和 256 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getTreeType() {
		return treeType;
	}

	public void setTreeType(String treeType) {
		this.treeType = treeType;
	}

	@Length(min=0, max=13, message="联系电话长度必须介于 0 和 13 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
}